home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-08-25 | 1.4 KB | 51 lines | [TEXT/MPS ] |
- CalcIt is an unfinished sample application starting with AppWannabe.
- The purpose of this sample is to demonstrate how close AppWannabe is
- to being another application. There is only one code change to
- AppWannabe, and that change is actually optional. All other changes
- consist of resource changes and changes made to the 'WFMT' resource
- using the AppsToGo application editor.
-
- To build CalcIt, do the following:
-
- 1) Copy the following files from the AppWannabe project folder:
- App.defs.h
- App.h
- App.protos.h
- AppWannabe.π
- DoEvent.c
- EventLoop.c
- File.c
- IdleTasks.c
- Menu.c
- OBJECT
- Start.c
- TRootObj.c
- Window.c
- WindowDialog.c
- WindowPalette.c
-
- 2) Rename AppWannabe.π to CalcIt.π.
-
- 3) The below code change allows CalcIt to quit when the calculator
- window is closed. This allows CalcIt to behave like a DA instead
- of an Application. Replace the current WindowGoneFixup function
- (which is found in the file Window.c) with the below:
-
- extern Boolean gQuitApplication;
- #pragma segment TheDoc
- void WindowGoneFixup(WindowPtr window)
- {
- #pragma unused (window)
-
- gQuitApplication = true;
- }
-
- 4) Build the project. For THINK, save the application as CalcIt.
-
-
- Of course, this isn't a finished application, as it doesn't calculate.
- The point of this sample is to show what you can (and can't) do with
- no code changes. All that remains to complete this application is a
- little code to handle the math. The human interface is complete, though.
-
-